package com.zmzncs.lmtc.module.promotion.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmzncs.lmtc.module.park.dao.ParkInfoDao;
import com.zmzncs.lmtc.module.promotion.dao.MonthRuleParkMapper;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule_park.MonthRulePark;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule_park.MonthRuleParkDTO;
import com.zmzncs.lmtc.module.promotion.service.MonthRuleParkService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Service
@Slf4j
public class MonthRuleParkServiceImpl extends ServiceImpl<MonthRuleParkMapper, MonthRulePark> implements MonthRuleParkService {

    @Autowired
    MonthRuleParkMapper monthRuleParkMapper;
    @Autowired
    ParkInfoDao parkInfoDao;

    /**
     * 查询月租规则的停车场
     */
    @Override
    public List<MonthRuleParkDTO> getMonthRuleParkList(String keyword) {
        List<MonthRuleParkDTO> monthRuleParkDTOList = monthRuleParkMapper.getMonthRuleParkList(keyword);

        return monthRuleParkDTOList;
    }

}
